<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
	#hd{
		width: 184px;
		height: 149px;
		border: 5px solid blue;
		margin: 0 auto;
		background: url(dogs.jpg) no-repeat -348px -222px;
	}
	.dog{
		width: 24px;
		height: 24px;
		border: 2px solid purple;
		margin: 10px auto;
		background: url(ganji.png) no-repeat 0px -308px;
	}
	.chengxin{
		width: 112px;
		height: 40px;
		border: 3px solid green;
		margin: 10px auto;
		background: url(ganji.png) no-repeat -116px -865px;
	}
</style>
</head>

<body>
<!-- 背景精灵技术：在一个有限大小的区域内，显示大背景图的某个部分 -->
<div id="hd"></div>
<div class="dog"></div>
<div class="chengxin"></div>


</body>
</html>
